package com.wyl.pmd.rule.bestpractices;

public class PositionLiteralsFirstInCaseInsensitiveComparisons {

	boolean bar(String x) {
		//bad
		//return x.equalsIgnoreCase("2");
		
		//good
		return "2".equalsIgnoreCase(x);
	}
}
